package sctu.edu.java.year2016.team01.xuhanmei.day20160526.practice.KnowSuper;

/**
 * Created by Administrator on 2016/5/26.
 */
public class Person1 {//父类。

    String name;
    int age;
    public Person1(String name){
        System.out.println("Person的无参数构造方法");

    }
    public Person1(String name,int age){
        this.name=name;
        this.age=age;
        System.out.println("person的有参数构造方法");
    }
     void run(){
         System.out.println("i believe i can fly");
     }
    void sleep(){
        System.out.println("if i want to sleep when i'm taking a class," +
                "you can poke me,i'll thank you");
    }
}
